package com.dahua.messagesyncbj.service.Impl;

import com.dahua.messagesyncbj.config.redis.RedisUtil;
import com.dahua.messagesyncbj.pojo.EquipmentInfo;
import com.dahua.messagesyncbj.service.RedisService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Map;

@Slf4j
@Service
public class RedisServiceImpl implements RedisService {
    @Resource
    private RedisUtil redisUtil;

    @Override
    public Map<Object, Object> enquireEquipmentData(EquipmentInfo info) {
        Map<Object, Object> hash = redisUtil.getHash(info.getName());
        return hash;
    }
}
